home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / errfac / errlib.h < prev    next >
C/C++ Source or Header  |  1990-05-15  |  1KB  |  56 lines

  1. #ifndef ERRLIBH
  2. #define ERRLIBH
  3.  
  4. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/errfac/RCS/errlib.h,v 3.0 90/05/15 22:36:58 kgorlen Rel $
  5.  
  6. /* errlib.h -- header file for portable error facility
  7.  
  8.     THIS SOFTWARE FITS THE DESCRIPTION IN THE U.S. COPYRIGHT ACT OF A
  9.     "UNITED STATES GOVERNMENT WORK".  IT WAS WRITTEN AS A PART OF THE
  10.     AUTHOR'S OFFICIAL DUTIES AS A GOVERNMENT EMPLOYEE.  THIS MEANS IT
  11.     CANNOT BE COPYRIGHTED.  THIS SOFTWARE IS FREELY AVAILABLE TO THE
  12.     PUBLIC FOR USE WITHOUT A COPYRIGHT NOTICE, AND THERE ARE NO
  13.     RESTRICTIONS ON ITS USE, NOW OR SUBSEQUENTLY.
  14.  
  15. Author:
  16.     S.M. Orlow
  17.     Systex,Inc.
  18.     Beltsville, MD 20705
  19.     301-474-0111
  20.     June, 1986
  21.  
  22. Contractor:
  23.     K. E. Gorlen
  24.     Bg. 12A, Rm. 2017
  25.     Computer Systems Laboratory
  26.     Division of Computer Research and Technology
  27.     National Institutes of Health
  28.     Bethesda, Maryland 20892
  29.     Phone: (301) 496-5363
  30.     uucp: uunet!nih-csl!kgorlen
  31.     Internet: kgorlen@alw.nih.gov
  32.  
  33. $Log:    errlib.h,v $
  34.  * Revision 3.0  90/05/15  22:36:58  kgorlen
  35.  * Release for 1st edition.
  36.  * 
  37. */
  38.  
  39. #include <stdio.h>
  40.  
  41. extern "C" {
  42. void errprefix(const char*);
  43. void errpostfix(const char*);
  44. void formaterror(const char*,char*,int);
  45. void seterropt(int esev,int psev,int dump,int fmt,FILE* filep);
  46. void geterropt(int& esev,int& psev,int& dump,int& fmt,FILE*& filep);
  47. void printerror(const char* prefix);
  48. int seterror(int err,int sev, ... );
  49.  
  50. typedef int (*perrtrap)();
  51. void seterrtrap(perrtrap func,int sev);
  52. void clrerrtrap(int sev);
  53. }
  54. #endif /* ERRLIBH */
  55.  
  56.